package org.lagou.edu.logSdk.io.impl;

import org.lagou.edu.logSdk.types.OpLogRecord;
import org.lagou.edu.logSdk.io.SendOpLog;
import org.lagou.edu.logSdk.thread.SendLogTask;
import org.lagou.edu.logSdk.thread.ThreadPoolUtil;
import org.springframework.stereotype.Component;

@Component
public class SimpleSendOpLog<T> implements SendOpLog<T> {
    @Override
    public void send(OpLogRecord<T> logRecord) {
		ThreadPoolUtil.execute(new SendLogTask<>(logRecord));
    }
}
